Skip to content

docs: split running queries from Cypher reference and organize sidebar - #219

Merged
prrao87 merged 2 commits into
mainfrom
docs/phase-1-cypher-split-and-nav
Nov 27, 2026
Merged

prrao87 merged 2 commits into
mainfrom
docs/phase-1-cypher-split-and-nav

Conversation

@prrao87

@prrao87 prrao87 commented Nov 27, 2026

Copy link
Copy Markdown
Member

Summary

Phase 1 of making the Zensical docs more readable and conceptually structured for human readers while keeping full technical detail and runnable snippets available for agents and power users:

  • Split the 689-line docs/cypher.md into two focused pages: Running queries (docs/running-queries.md) for Python CypherEngine/CypherQuery runtime usage and Cypher reference (docs/cypher.md) for the language-agnostic openCypher surface.
  • Reorganized the sidebar in zensical.toml so all 7 core capabilities remain visible under Guide, while Rust & TypeScript, API reference, and DataFusion internals sit in collapsible directories under Reference and How it works.
  • Moved engine-wide sections (Repeated queries and Query parallelism) out of docs/lance.md into docs/running-queries.md, and cleaned up spliced-in prose in docs/cypher.md and docs/execution.md.

Problem and why it matters

Incremental PR additions had turned docs/cypher.md into a 5,700-word page mixing Python engine API usage, dense 18-line pattern edge-case bullets, internal Arrow path struct fields, and stitched-in paragraphs (such as duplicate openings in Case sensitivity and an aggregate-comparison note under Ordered reduce). Meanwhile, engine-wide topics (Repeated queries and Query parallelism) lived on docs/lance.md, and Using from Rust / Using from TypeScript sat as loose top-level links in the sidebar.

Newcomers and graph practitioners had to wade through low-level edge-case specs to learn how to run and inspect queries, while Rust and TypeScript users had to read past Python engine docs to reach the Cypher reference.

Change

  • New page docs/running-queries.md: Covers CypherEngine vs CypherQuery, execute(), $parameters, streaming (execute_batches()), deadlines (timeout), an annotated explain(..., analyze=True) walkthrough (registered in docs/explain_plans.py), plan template caching (Repeated queries), target_partitions (Query parallelism), CypherQuery, and errors. Detailed parameter coercion/limits, template-cache rules, and pre-planning type-check rules are tucked into collapsible ??? note blocks so agents and search still index every detail without interrupting narrative flow.
  • Refactored docs/cypher.md (Cypher reference): Preserves existing URL anchors (#supported-cypher, #path-values, #functions). Breaks Patterns into scannable subsections (Variable-length paths, Alternation and untyped relationships, Relationship uniqueness and reuse, Shortest paths), removes historical bug phrasing, moves Arrow struct metadata (__lance_csr_*) and exhaustive function/reduce edge cases into collapsible ??? info/??? note blocks, moves the aggregate-comparison note into Expressions and predicates, and fixes the stitched Case sensitivity paragraphs.
  • Cleaned docs/lance.md and docs/execution.md: Moved Repeated queries and Query parallelism to docs/running-queries.md, tightened the LanceDB bundled-version warning in docs/lance.md, and trimmed low-level ApplyExec / CsrQueryPlanner paragraphs out of docs/execution.md (already covered in docs/internals/).
  • Sidebar navigation (zensical.toml): Grouped Cypher reference, collapsible Rust & TypeScript, and collapsible API reference under Reference, keeping Guide focused on the 7 core practitioner topics.
  • Updated cross-links: Updated links across docs/, Python docstrings (python/python/lance_csr/cypher.py, sql.py), and TypeScript TSDoc (nodejs/src/cypher.ts, regenerated nodejs/typedoc/api.md).

Validation

Documentation-only changes (plus docstring/TSDoc cross-link updates); no engine code or benchmarks changed.

  • uv run --project docs --locked zensical build --strict — passed (No issues found)
  • cd python && uv run --no-sync python ../docs/check_snippets.py — passed (all runnable blocks across every page, including 10 blocks in running-queries.md, 9 in cypher.md, 5 in lance.md)
  • cd python && uv run --no-sync python ../docs/explain_plans.py — verified running-queries.md: explain(analyze=True) matches pasted plan
  • cd python && make lint — passed (ruff check, ruff format --check, pyright 0 errors)
  • cd nodejs && npm run docs:api && npm run lint — regenerated nodejs/typedoc/api.md; tsc --noEmit and prettier --check passed
  • uvx typos@1.52.0 . — passed with zero issues

User impact

Documentation reorganization only. Existing links to cypher/#supported-cypher, cypher/#path-values, and cypher/#functions remain valid; engine runtime usage now lives at running-queries/. No API or runtime behaviour changed.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Deploying lance-csr with  Cloudflare Pages  Cloudflare Pages

Latest commit: 973e2a6
Status: ✅  Deploy successful!
Preview URL: https://5dc79a2f.lance-csr.pages.dev
Branch Preview URL: https://docs-phase-1-cypher-split-an.lance-csr.pages.dev

View logs

@prrao87
prrao87 merged commit 20e88aa into main Nov 27, 2026
10 checks passed
@prrao87
prrao87 deleted the docs/phase-1-cypher-split-and-nav branch November 27, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant